import axios from '@/libs/api.request'
export default class dashBoardApi {
  /**
   * 获取累计账单 客户账单 开票信息
   */
  static GetBillTotal = params => {
    return axios.request({
      url: '/DashBoard/GetBillTotal',
      method: 'post',
      data: params,
      enctype: 'multipart/form-data'
    })
  }

  // 客户账单
  static GetBillList = params => {
    return axios.request({
      url: '/DashBoard/GetBillList',
      method: 'post',
      data: params,
      enctype: 'multipart/form-data'
    })
  }

  // 开票信息
  static GetInvoiceList = params => {
    return axios.request({
      url: '/DashBoard/GetInvoiceList',
      method: 'post',
      data: params,
      enctype: 'multipart/form-data'
    })
  }

  // 获取公司员工异动数据
  static GetCustomerEmployeeChange = params => {
    return axios.request({
      url: '/DashBoard/GetCustomerEmployeeChange',
      method: 'post',
      data: params,
      enctype: 'multipart/form-data'
    })
  }

  // 获取区域信息
  static GetMapInfo = params => {
    return axios.request({
      url: '/DashBoard/GetMapInfo',
      method: 'post',
      data: params,
      enctype: 'multipart/form-data'
    })
  }

  // 获取区域信息(纯地区名称，用于显示icon)
  static GetMapInfoForIcon = params => {
    return axios.request({
      url: '/DashBoard/GetMapInfoForIcon',
      method: 'post',
      data: params,
      enctype: 'multipart/form-data'
    })
  }

  // 获取账单信息
  static GetMapBill = params => {
    return axios.request({
      url: '/DashBoard/GetMapBill',
      method: 'post',
      data: params,
      enctype: 'multipart/form-data'
    })
  }
}